/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.open.api.core.web.result;

import jakarta.validation.constraints.NotEmpty;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(ApiResult)</b>
 * Api 响应类
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/10/12
 */
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class ApiResult {
    /** 请求流水号 */
    @NotEmpty
    String requestNo;
    /** 应答码 */
    @NotEmpty
    String code;
    /** 应答描述 */
    @NotEmpty
    String detail;
    /** token */
    String token;
    /** 返回数据 */
    @NotEmpty
    Object info;
}